package org.flowcircuit.model.board


import _root_.org.flowcircuit.appearance.{Style, DrawContext}
import coordinates.Pos
import utils.CallbackList

/**
 * 
 * 
 * @author Hans Haggstrom
 */

abstract class TracePoint extends CircuitElement {

  val style : Style
  val size : Float

  val traces = CallbackList[Trace]()


  def render(context: DrawContext) = {
    context.circle( pos, size, style )
  }

  def isInside(queryPos: Pos, context: DrawContext) = {
    context.isInsideCircle( queryPos, pos, size, style )
  }
}